<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title>后台管理中心</title>
    <link rel="stylesheet" href="__ROOT__/static/admin/css/pintuer.css">
    <link rel="stylesheet" href="__ROOT__/static/admin/css/admin.css">
    <script src="__ROOT__/static/admin/js/jquery.js"></script>
</head>
<body style="background-color:#f2f9fd;overflow: hidden;">
<div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
        <h1><img src="__ROOT__/static/admin/img/y.jpg" class="radius-circle rotate-hover" height="50" alt=""/>后台管理中心
        </h1>
    </div>
    <div class="head-l"><a class="button button-little bg-green" href="{:url('home/Index/index')}" target="_blank"><span
            class="icon-home"></span> 前台首页</a> &nbsp;&nbsp;<a href="{:url('admin/index/cache')}"
                                                              class="button button-little bg-blue"><span
            class="icon-wrench"></span> 清除缓存</a> &nbsp;&nbsp;<a class="button button-little bg-red"
                                                                href="{:url('admin/index/loginOut')}"
                                                                onclick="return confirm('是否退出登录？')"><span
            class="icon-power-off"></span> 退出登录</a></div>
</div>
<div class="leftnav" style="height:600px;">
    <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
    {if in_array(1,Session('RULES'))}
    <h2><span class="icon-user"></span>用户信息管理</h2>
    <ul>
        {if in_array(2,Session('RULES'))}
        <li><a href="{:url('admin/Users/user')}" target="right"><span class="icon-caret-right"></span>个人信息管理</a></li>
        {/if}
        {if in_array(53,Session('RULES'))}
        <li><a href="{:url('admin/Users/upPwd')}" target="right"><span class="icon-caret-right"></span>修改密码</a></li>
        {/if}
    </ul>
    {/if}
    {if in_array(7,Session('RULES'))}
    <h2><span class="icon-key"></span>会员管理</h2>
    <ul>
        {if in_array(8,Session('RULES'))}
        <li><a href="" target="right"><span class="icon-caret-right"></span>注册会员列表</a></li>
        {/if}
    </ul>
    {/if}
    {if in_array(11,Session('RULES'))}
    <h2><span class="icon-pencil-square-o"></span>订单管理</h2>
    <ul>
        {if in_array(12,Session('RULES'))}
        <li><a href="{:url('admin/Order/order')}" target="right"><span class="icon-caret-right"></span>订单列表</a></li>
        {/if}
    </ul>
    {/if}
    {if in_array(15,Session('RULES'))}
    <h2><span class="icon-user"></span>商品分类管理</h2>
    <ul>
        {if in_array(16,Session('RULES'))}
        <li><a href="{:url('admin/Goods/index')}" target="right"><span class="icon-caret-right"></span>商品列表</a></li>
        {/if}
        {if in_array(17,Session('RULES'))}
        <li><a href="{:url('admin/Goodscats/index')}" target="right"><span class="icon-caret-right"></span>商品分类</a></li>
        {/if}
        {if in_array(18,Session('RULES'))}
        <li><a href="{:url('admin/Goodscats/goodsInfoImagesList')}" target="right"><span
                class="icon-caret-right"></span>商品详情</a></li>
        {/if}
        {if in_array(19,Session('RULES'))}
        <li><a href="{:url('admin/Goodscats/goodsAppraises')}" target="right"><span class="icon-caret-right"></span>商品评价</a>
        </li>
        {/if}
    </ul>
    {/if}
    {if in_array(26,Session('RULES'))}
    <h2><span class="icon-user"></span>社区管理</h2>
    <ul>
        {if in_array(27,Session('RULES'))}
        <li><a href="{:url('admin/Community/index')}" target="right"><span class="icon-caret-right"></span>社区列表</a></li>
        {/if}
        {if in_array(28,Session('RULES'))}
        <li><a href="{:url('admin/Topics/index')}" target="right"><span class="icon-caret-right"></span>话题贴列表</a></li>
        {/if}
        {if in_array(29,Session('RULES'))}
        <li><a href="page.html" target="right"><span class="icon-caret-right"></span>社区话题统计</a></li>
        {/if}
    </ul>
    {/if}
    {if in_array(35,Session('RULES'))}
    <h2><span class="icon-child"></span>育儿知识库</h2>
    <ul>
        {if in_array(36,Session('RULES'))}
        <li><a href="{:url('admin/knows/index')}" target="right"><span class="icon-caret-right"></span>育儿知识</a></li>
        {/if}
        {if in_array(37,Session('RULES'))}
        <li><a href="pass.html" target="right"><span class="icon-caret-right"></span>营养食谱</a></li>
        {/if}
        {if in_array(38,Session('RULES'))}
        <li><a href="page.html" target="right"><span class="icon-caret-right"></span>我的收藏</a></li>
        {/if}
    </ul>
    {/if}
    {if in_array(41,Session('RULES'))}
    <h2><span class="icon-user"></span>活动管理</h2>
    <ul>
        {if in_array(42,Session('RULES'))}
        <li><a href="{:url('admin/')}" target="right"><span class="icon-caret-right"></span>活动列表</a></li>
        {/if}
    </ul>
    {/if}
    {if in_array(43,Session('RULES'))}
    <h2><span class="icon-user"></span>系统消息管理</h2>
    <ul>
        {if in_array(44,Session('RULES'))}
        <li><a href="{:url('admin/')}" target="right"><span class="icon-caret-right"></span>设置系统消息</a></li>
        {/if}
    </ul>
    {/if}
    {if in_array(45,Session('RULES'))}
    <h2><span class="icon-user"></span>优惠券管理</h2>
    <ul>
        {if in_array(46,Session('RULES'))}
        <li><a href="{:url('admin/')}" target="right"><span class="icon-caret-right"></span>优惠券列表</a></li>
        {/if}
    </ul>
    {/if}
    <!--{if in_array(47,Session('RULES'))}-->
    {if condition="($id eq 1)"}
    <h2><span class="icon-user"></span>权限管理</h2>
    <ul>
        {if in_array(48,Session('RULES'))}
        <li><a href="{:url('admin/Role/index')}" target="right"><span class="icon-caret-right"></span>角色管理</a></li>
        {/if}
        {if in_array(49,Session('RULES'))}
        <li><a href="{:url('admin/Staff/index')}" target="right"><span class="icon-caret-right"></span>职员管理</a></li>
        {/if}
    </ul>
    {/if}
    {if in_array(50,Session('RULES'))}
    <h2><span class="icon-cog"></span>系统设置</h2>
    <ul>
        {if in_array(51,Session('RULES'))}
        <li><a href="{:url('admin/')}" target="right"><span class="icon-caret-right"></span>系统参数设置</a></li>
        {/if}
        {if in_array(52,Session('RULES'))}
        <li><a href="{:url('admin/Images/index')}" target="right"><span class="icon-caret-right"></span>首页轮播管理</a></li>
        {/if}
        {if in_array(54,Session('RULES'))}
        <li><a href="{:url('admin/Operation/index')}" target="right"><span class="icon-caret-right"></span>首页导航管理</a></li>
        {/if}
    </ul>
    {/if}
</div>
<script type="text/javascript">
$(function() {
    $(".leftnav h2").click(function () {
        $(this).next().slideToggle(200);
        $(this).toggleClass("on");
        $('.leftnav').css('overflow-y',"auto");
    });
    $(".leftnav ul li a").click(function () {
        $("#a_leader_txt").text($(this).text());
        $(".leftnav ul li a").removeClass("on");
        $(this).addClass("on");
    });
    $('.icon-home').bind('click',function(){
       window.location.href="{:url('admin/Index/index')}";
    });
});
</script>
<ul class="bread">
    <li><a target="right" class="icon-home"> 首页</a></li>
    <li><a href="##" id="a_leader_txt">网站信息</a></li>
    <li><b>当前语言：</b><span style="color:red;">中文</span>
</ul>
<div class="admin">
    <iframe scrolling="auto" rameborder="0" src="{:url('admin/index/show')}" name="right" width="100%"
            height="100%"></iframe>
</div>
</body>
</html>